package com.example.actordemo1.remote;

import akka.actor.ActorSelection;
import akka.actor.ActorSystem;

import java.io.IOException;
import java.io.ObjectInputStream;
import java.net.ServerSocket;
import java.net.Socket;

public class ServerScoketTest {

    public static void main(String[] args) throws IOException {
        ActorSystem actorSystem = ActorSystem.create("sys1");
        ActorSelection actorSelection = actorSystem.actorSelection("akka.tcp://sys@127.0.0.1:2552/user/remoteActor");
        actorSelection.tell("1111",actorSelection.anchor());
    }


}
